export default [
    {
        path : '/upms',
        component : () => import(/* webpackChunkName: "layout" */ "@/components/layout/CBasicLayout"),
        children : [
            {
                path : 'user',
                name : 'user',
                meta :  { title : '用户管理', permission : '' },
                component : () => import(/* webpackChunkName: "views" */ "@/views/upms/EmployeeManage"),
            }, {
                path : 'role',
                name : 'role',
                meta :  { title : '角色管理', permission : '' },
                component : () => import(/* webpackChunkName: "views" */ "@/views/upms/RoleManage"),
                props : (route) => ({
                    roleName : route.query.roleName
                })
            }, {
                path : 'menu',
                name : 'menu',
                meta :  { title : '菜单管理', permission : '' },
                component : () => import(/* webpackChunkName: "views" */ "@/views/upms/MenuManage"),
            },{
                path : 'power',
                name : 'powerManage',
                meta :  { title : '系统权限', permission : '' },
                component : () => import(/* webpackChunkName: "views" */ "@/views/upms/PowerMange"),
                props : (route) => ({
                    name : route.query.name,
                    permission : route.query.permission,
                })
            }
        ]
    }
];
